﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OFactoryRenovationAdd.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OFactoryRenovationAdd" %>
<div class="pageContent">
	<form method="post" action="MacModel/OFactoryRenovationAdd.aspx?ajaxmethod=add" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
                 <p>
				    <label>发行日期：</label>
				    <input name="IssueDate" type="text" class="date required"  value="" />
			    </p>
                <p>
				    <label>经销商：</label>
				    <input name="AgentName" type="text" class="required"  value="" />
			    </p>
            <div class="divider"></div>
                <p>
				    <label>机号：</label>
				    <input name="SerialNumber" type="text" class="required"  value="" />
			    </p>
                <p>
				    <label>需求部门：</label>
				    <select name="DemandDept">
                        <option value="营业部">营业部</option>
                        <option value="风险部">风险部</option>
                        <option value="服务部">服务部</option>
				    </select>
			    </p>
              <div class="divider"></div>
                <p>
				    <label>返厂日期：</label>
				    <input name="ReturnDate" type="text" class="date required"  value="" />
			    </p>
                  <p>
				    <label>机器性质/类型：</label>
				    <select name="MachineProperty" id="Add_MachineProperty">
                        <option value="样机">样机</option>
                        <option value="退机">退机</option>
                        <option value="返修车">返修车</option>
                        <option value="回购车">回购车</option>
				    </select>
			    </p>
              <div class="divider"></div>
                <p>
				    <label>工时：</label>
				    <input name="WorkTime" type="text" class=""  value="" />
			    </p>
                <p>
				    <label>是否收费：</label>
				    <input name="IsCharges" type="checkbox" class=""  value="true" />
			    </p>
              <div class="divider"></div>
             <p>
				    <label>翻新内容：</label>
				    <input name="RenovationContent" type="text" class=""  value="" />
			    </p>
            <div id="BuyBackDIV" style=" clear:both;">
            <h2 style=" padding:0px 0px 5px 6px; border-bottom:1px solid #B8D0D6;">回购车信息</h2>
			    <p>
				    <label>回购成本（不含税）：</label>
				    <input name="BuyBackCost" type="text" class=""  value="0" />
			    </p>
                <p>
				    <label>运费：</label>
				    <input name="Freight" type="text" class=""  value="0" />
			    </p> 
                <p>
				    <label>三方协议：</label>
				    <input name="IsThreeParty" type="checkbox" class=""  value="true" />
			    </p>
                <p>
				    <label>是否可开票：</label>
				    <input name="IsInvoice" type="checkbox" class=""  value="true" />
			    </p>
                <p>
				    <label>备注：</label>
				    <input name="BuyRemark"  type="text" class=""  value="" />
			    </p>
            </div>
        </div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" > 提 交 </button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script>
    $(document).ready(function () {
        $("#BuyBackDIV").find("input").attr("disabled", "disabled");
        $("#Add_MachineProperty").change(function () {
            if ($(this).val() == "回购车") {
                $("#BuyBackDIV").find("input").attr("disabled", "");
            } else {
                $("#BuyBackDIV").find(":text").val("");
                $("#BuyBackDIV").find(":checkbox").attr("checked","");
                $("#BuyBackDIV").find("input").attr("disabled", "disabled");
            }
        })
    })
</script>